<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link rel="stylesheet" type="text/css" href="css/css.css" />
    <link rel="stylesheet" type="text/css" href="css/style.css" />
    <title>会员管理</title>
    <script type="text/javascript"
            src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
    <script
            src="https://cdn.jsdelivr.net/npm/handlebars@latest/dist/handlebars.js"></script>
    <script src="layer/layer.js" type="text/javascript"></script>
    <script src="js/main.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function() {
            $(".center-bg li:first").addClass("on");
            $("#url").attr('src','user_info.jsp');
            $(".center-bg li").click(function() {
                $(".center-bg li").removeClass("on");
                $(this).addClass("on");
                $("#url").attr('src',$(this).children("input").val());
            });
        });

     /*判断是管理员还是用户*/
        $(function () {
           if (${user.userRole eq 'U'}){
              $(".roleS").hide();
           }
        })
    </script>
</head>
<body style="background: #efeee9;">
<input type="hidden" id="pageName" value="customerCenter" />
<input type="hidden" id="morePrivilege" value="false" />
<form id="j-main-form" action="">
<%-- 头部--%>
    <jsp:include page="top.jsp"></jsp:include>
    <%--<%@include file="top.jsp"%>--%>
    <div id="j-popup-captcha"></div>
    <div id="j-popup-click"></div>

    <div class="m-customer-center">
        <div class="ui-chat" id="j-chat">
            <div class="online chat"></div>
            <div class="offline chat">
                <div class="tip"></div>
            </div>
        </div>

        <div id="j-center-top" class="top-bg">
            <div class="img"></div>
        </div>
        <div class="center-bg">
            <div class="fl center-left">
                <ul class="font14 cursor">
                    <li>
                        <input type="hidden" value="user_info.jsp"/>
                        <a num="7" class="tab07" href="javascript:">个人信息</a>
                    </li>
                    <li>
                        <input type="hidden" value="AddressServlet/allAddress"/>
                        <a num="6" class="tab06" href="javascript:">地址管理</a>
                    </li>
                    <li class="roleS">
                        <input type="hidden" value="UserServlet/allTUser"/>
                        <a num="1" class="tab01" href="javascript:">用户管理</a>
                    </li>
                    <li class="roleS">
                        <input type="hidden" value="CategoryServlet/gotoCategory"/>
                        <a num="6" class="tab08" href="javascript:">分类管理</a>
                    </li>
                    <li class="roleS">
                        <input type="hidden" value="ProductServlet/gotoProduct"/>
                        <a num="7" class="tab09" href="javascript:">餐品管理</a>
                    </li>
                    <li>
                        <input type="hidden" value="OrderServlet/gotoOrder"/>
                        <a num="5" class="tab05" href="javascript:">订单管理</a>
                    </li>
                </ul>
            </div>
            <div id="j-customer-center-right" class="center-right">
                <div class="m-member-home">
                    <div class="center">
                        <div class="left center-left">
                            <iframe id="url" frameborder="0" height="600px", width="100%" src="" scrolling="no"></iframe>
                        </div>
                    </div>
                </div>

            </div>
        </div>
    </div>

    <!-- /首页内容区域 -->
    <jsp:include page="foot.jsp"></jsp:include>
   <%-- <%@include file="foot.jsp"%>--%>
    <!-- 购物车-->
    <%
        if(session.getAttribute("user") != null){
    %>
    <%@include file="cart.jsp"%>
    <%
        }
    %>
</form>


</body>
</html>
